package com.treasure.mall.biz.service.core.blacklist;

import com.treasure.mall.biz.base.SearchableCrudService;
import com.treasure.mall.biz.entity.blacklist.BlacklistPO;
import com.treasure.mall.zbq.common.ienum.SystemEnums;

/**
 * 
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.service.core.blacklist
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/9/23 2:28 下午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
public interface BlacklistService extends SearchableCrudService<BlacklistPO, Long> {

    /**
     * 检查用户是否在黑名单
     *
     * @param userId        用户ID
     * @param blacklistType 黑名单类型
     * @return
     */
    boolean checkByUserId(Long userId, SystemEnums.BlacklistType blacklistType);
}
